<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"  
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui"
	xmlns:ui="http://java.sun.com/jsf/facelets">

<h:head><title>IGNORED</title></h:head>

<h:body>
	<ui:composition template="/WEB-INF/templates/MainLayout.xhtml">
	<ui:define name="windowTitle">Login</ui:define>
	<ui:define name="content">
	
	<f:view contentType="text/html">
	<div style="margin-left: 5em;margin-top: 3em;">
		<h:panelGrid columns="2">
			<h:graphicImage value="/resources/gfx/iconos/stock_people.png" width="40px" height="40px"/>
			<h:outputText value="Entrada al sistema" style="font-weight: bold; font-size: large;"/>
		</h:panelGrid>
		<h:form>
		  <p:panel style="width: 700px">
	            <h:form prependId="false">
	                <p:messages showDetail="true" />
	                <p:panelGrid style="width: 650px" columns="2" cellpadding="2" cellspacing="2" >
	                    <f:facet name="header">
	                        <h:outputLabel value="Login Form"/>
	                    </f:facet>
	                    <p:outputLabel value="Username"/>
	                    <p:inputText value="#{loginBean.username}" size="20"/>
	
	                    <p:outputLabel value="Password"/>
	                    <p:password value="#{loginBean.password}" size="20"/>
	
	                    <p:outputLabel />
	                    <p:commandButton action="#{loginBean.login()}" value="Login"/>
	                </p:panelGrid>
	            </h:form>
		  </p:panel>
		</h:form>
	</div>
	</f:view>

	</ui:define>
</ui:composition>
</h:body>
</html>
